<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FileBrowser.aspx.cs" Inherits="Utils_FileBrowser" %>

<%@ Register Assembly="WebControls" Namespace="WebControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>File Browser</title>
    <base target="_self">
    
    <script src="/js/Controls.js" type="text/javascript"></script>
</head>
<body bgcolor="#f2f1ef">
    <form id="form1" runat="server">
        <div>
            <table>
                <asp:Repeater ID="rptFiles" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <a href='<%#DataBinder.Eval(Container.DataItem,"FilePath") %>' runat="server" id="lnk"
                                    onclick='<%#GenerateOnclick(DataBinder.Eval(Container.DataItem,"FileName"),DataBinder.Eval(Container.DataItem,"FilePath"),DataBinder.Eval(Container.DataItem,"Size"))%>'>
                                    <%#DataBinder.Eval(Container.DataItem,"FileName") %>
                                    (<%#DataBinder.Eval(Container.DataItem,"Size") %>
                                    kb)</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
                <tr>
                    <td>
                        <cc1:SFLabel ID="lblUploadFile" runat="server"></cc1:SFLabel>
                        <asp:FileUpload ID="flUpload" runat="server" />
                        <cc1:SFButton ID="btnUpload" runat="server" OnClick="btnUpload_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
